The Dreamweaver JavaScript API > Selection functions > dom.getSelectedNode()

 

dom.getSelectedNode()

Availability

Dreamweaver 3.0

Description

Gets the selected node. This function is equivalent to calling dom.getSelection() and then passing the return value to dom.offsetsToNode().

Arguments

None.

Returns

The tag, text, or comment object that completely contains the specified range of characters.

Enabler

None.